import 'dart:ui';

import 'package:get/get.dart';
import 'package:webview_flutter/webview_flutter.dart';
/**
 * GetX Template Generator - fb.com/htngu.99
 * */

class serverController extends GetxController{

  var controller = WebViewController()
    ..setJavaScriptMode(JavaScriptMode.unrestricted)
    ..enableZoom(false)
    ..setBackgroundColor(const Color(0x00000000))
  ;

  @override
  void onInit() {
    super.onInit();
    var url=Get.arguments["url"];
    controller.loadRequest( Uri.parse(url));
    // var content=Get.arguments["content"];
    // controller.loadHtmlString(content);
  }
}
